package com.itheim.neibulei6;

import java.rmi.StubNotFoundException;

public class Test {

    public static void main(String[] args) {

      /*  Fu fu = new Fu(){
            @Override
            public void dance() {
                System.out.println("蹦跶");
            }
        };
        fu.sing();
        fu.dance();
*/

        new Zheng() {

        }.rap();
    }
}

abstract class Fu {
    public void sing() {
        System.out.println("sing");
    }

    public abstract void dance();
}

class Zheng {
    public void rap() {
        System.out.println("rap");
    }
}